package com.lxmes.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 物料生成规则对象 jc_iteminfo_gz
 * 
 * @author 张志煜
 * @date 2022-11-18
 */
public class JcIteminfoGz extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String tenantId;

    /** 类型代码 */
    @Excel(name = "类型代码")
    private String classId;

    /** 物料类型 */
    @Excel(name = "物料类型")
    private String className;

    /** 规格代码 */
    @Excel(name = "规格代码")
    private String specCode;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String spec;

    /** 顺序号 */
    @Excel(name = "顺序号")
    private String seq;

    /** 名称构成 */
    @Excel(name = "名称构成")
    private String nameGc;

    /** 标准名称 */
    @Excel(name = "标准名称")
    private String itemBzName;
    /** 物料识别码 */
    @Excel(name="物料识别码")
    private String itemIdentifyCode;
    /*生成标记*/
    private String scFlag;

    /** 生成物料号日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date scDate;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String itemCode;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String itemName;
    /** 物料单位 */
    @Excel(name = "物料单位")
    private String unit;
    /** 条码号 */
    @Excel(name = "条码号")
    private String tmh;
    /** 一维码 */
    @Excel(name = "一维码")
    private String oneCode;

    /** 二维码 */
    @Excel(name = "二维码")
    private String twoCode;

    /** rfid码 */
    @Excel(name = "rfid码")
    private String rfidCode;


    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setClassId(String classId) 
    {
        this.classId = classId;
    }

    public String getClassId() 
    {
        return classId;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setSpecCode(String specCode) 
    {
        this.specCode = specCode;
    }

    public String getSpecCode() 
    {
        return specCode;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setSeq(String seq) 
    {
        this.seq = seq;
    }

    public String getSeq() 
    {
        return seq;
    }
    public void setNameGc(String nameGc) 
    {
        this.nameGc = nameGc;
    }

    public String getNameGc() 
    {
        return nameGc;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setTmh(String tmh) 
    {
        this.tmh = tmh;
    }

    public String getTmh() 
    {
        return tmh;
    }
    public void setOneCode(String oneCode) 
    {
        this.oneCode = oneCode;
    }

    public String getOneCode() 
    {
        return oneCode;
    }
    public void setTwoCode(String twoCode) 
    {
        this.twoCode = twoCode;
    }

    public String getTwoCode() 
    {
        return twoCode;
    }
    public void setRfidCode(String rfidCode) 
    {
        this.rfidCode = rfidCode;
    }

    public String getRfidCode() 
    {
        return rfidCode;
    }

    public String getUnit() {
        return unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getItemBzName() {
        return itemBzName;
    }

    public void setItemBzName(String itemBzName) {
        this.itemBzName = itemBzName;
    }

    public String getItemIdentifyCode() {
        return itemIdentifyCode;
    }

    public void setItemIdentifyCode(String itemIdentifyCode) {
        this.itemIdentifyCode = itemIdentifyCode;
    }

    public String getScFlag() {
        return scFlag;
    }

    public void setScFlag(String scFlag) {
        this.scFlag = scFlag;
    }

    public Date getScDate() {
        return scDate;
    }

    public void setScDate(Date scDate) {
        this.scDate = scDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("classId", getClassId())
            .append("className", getClassName())
            .append("specCode", getSpecCode())
            .append("spec", getSpec())
            .append("seq", getSeq())
            .append("nameGc", getNameGc())
            .append("itemCode", getItemCode())
            .append("itemName", getItemName())
            .append("tmh", getTmh())
            .append("oneCode", getOneCode())
            .append("twoCode", getTwoCode())
            .append("rfidCode", getRfidCode())
            .toString();
    }
}
